﻿Public Class sum2num
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub btn_Result_Click(sender As Object, e As EventArgs) Handles btn_Result.Click
        Dim FirstNum As Integer
        Dim SecondNum As Integer
        Dim Total As Integer

        FirstNum = CInt(tb_FirstNum.Text)
        SecondNum = CInt(tb_SecondNum.Text)

        Total = FirstNum + SecondNum
        lbl_Result.Text = "<h5>Result of these two numbers is: </h5>" + Convert.ToString(Total)

    End Sub
End Class